notify_user 0.0.7 → 0.0.8
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.
|
@@ -2108,3 +2108,1039 @@ o here.
|
|
|
2108
2108
|
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2109
2109
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2110
2110
|
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2111
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
2112
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2113
|
+
[1m[36mSQL (11.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2114
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2115
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
|
2116
|
+
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
|
|
2117
|
+
Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.0ms)
|
|
2118
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
|
2119
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2120
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2121
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2122
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2123
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2124
|
+
[1m[36m (4.9ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 84 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2125
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 84], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2126
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2127
|
+
Processing by NotifyUser::NotificationsController#index as JSON
|
|
2128
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 84 AND "notify_user_notifications"."target_type" = 'User'
|
|
2129
|
+
[1m[36mNotifyUser::BaseNotification Load (2.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 84 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
|
2130
|
+
Completed 200 OK in 20ms (Views: 12.2ms | ActiveRecord: 2.6ms)
|
|
2131
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
|
2132
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
2133
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2134
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2135
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2136
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2137
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2138
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2139
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2140
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2141
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2142
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2143
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2144
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2145
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2146
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2147
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2148
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
|
2149
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 85 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
|
2150
|
+
Completed 200 OK in 50ms (Views: 48.1ms | ActiveRecord: 0.7ms)
|
|
2151
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
|
2152
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
2153
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2154
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2155
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2156
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2157
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2158
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2159
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2160
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2161
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2162
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2163
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2164
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2165
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2166
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2167
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2168
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
|
2169
|
+
Parameters: {"id"=>"85"}
|
|
2170
|
+
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 86 AND "notify_user_notifications"."target_type" = 'User' AND (id = '85') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
2171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2172
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 86]]
|
|
2173
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2174
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 85[0m [["state", "read"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2175
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2176
|
+
Completed 200 OK in 19ms (Views: 1.7ms | ActiveRecord: 2.9ms)
|
|
2177
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 85 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
2178
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2179
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2180
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2181
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2182
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2183
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2184
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2185
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2186
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2187
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2188
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2189
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2190
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2191
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2192
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2193
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2194
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2195
|
+
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
|
2196
|
+
[1m[36mSQL (2.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
|
2197
|
+
Redirected to http://test.host/notify_user/notifications
|
|
2198
|
+
Completed 302 Found in 4ms (ActiveRecord: 2.4ms)
|
|
2199
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
|
2200
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
2201
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2202
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2203
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2204
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2205
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2206
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2207
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 88], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2208
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2209
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
2210
|
+
Parameters: {"ids"=>["91"]}
|
|
2211
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('91'))
|
|
2212
|
+
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('91'))[0m
|
|
2213
|
+
Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.8ms)
|
|
2214
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 91]]
|
|
2215
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
2216
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2217
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2218
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2219
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2220
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2221
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2222
|
+
[1m[35mSQL (0.4ms)[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 89], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2224
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
2225
|
+
Parameters: {"ids"=>["92"]}
|
|
2226
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('92'))
|
|
2227
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('92'))[0m
|
|
2228
|
+
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 1.1ms)
|
|
2229
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2230
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2231
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2232
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2233
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2234
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2235
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2236
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2238
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2239
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
|
2240
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
|
2241
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2242
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2243
|
+
[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" = 90) LIMIT 1
|
|
2244
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2245
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2246
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
|
2247
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2248
|
+
Completed 200 OK in 26ms (Views: 0.4ms | ActiveRecord: 4.4ms)
|
|
2249
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2250
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2251
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2252
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2253
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2254
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2255
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2256
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2257
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 91], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2258
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2259
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2260
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
|
2261
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
|
2262
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2263
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
|
2264
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2265
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)
|
|
2266
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2267
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2268
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2270
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2272
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2273
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 92 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2274
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2275
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2276
|
+
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
|
2277
|
+
Parameters: {"type"=>"NewPostNotification"}
|
|
2278
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2279
|
+
[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" = 92) LIMIT 1
|
|
2280
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2281
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2282
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
|
2283
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
|
2284
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
|
2285
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2286
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2287
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2288
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2289
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2290
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2291
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2292
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2293
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2294
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2295
|
+
[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" = 93) LIMIT 1
|
|
2296
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2297
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2298
|
+
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
|
2299
|
+
Parameters: {"type"=>"NewPostNotification"}
|
|
2300
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2301
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2302
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 23]]
|
|
2303
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2304
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
|
2305
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
|
|
2306
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
|
|
2307
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2308
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2309
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2310
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2311
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2312
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2313
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2314
|
+
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2315
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2316
|
+
[1m[36mNotifyUser::UserHash Load (1.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 94 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
|
|
2317
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2318
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' LIMIT 1[0m
|
|
2319
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 94], ["target_type", "User"], ["token", "41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2320
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2321
|
+
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
|
2322
|
+
Parameters: {"type"=>"NewPostNotification", "token"=>"41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ"}
|
|
2323
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
|
2324
|
+
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
|
2325
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 94]]
|
|
2326
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2327
|
+
[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" = 94) LIMIT 1
|
|
2328
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2329
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2330
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2331
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 27 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
|
2332
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2333
|
+
Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 3.2ms)
|
|
2334
|
+
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
|
|
2335
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
2336
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2337
|
+
[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
|
|
2338
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2339
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
2340
|
+
[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
|
|
2341
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2342
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
2343
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
2344
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2345
|
+
[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
|
|
2346
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2347
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
2348
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
|
2349
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2350
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
2351
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2352
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2353
|
+
[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
|
|
2354
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2355
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
2356
|
+
[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
|
|
2357
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2358
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
2359
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2360
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2361
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2362
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2363
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2364
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2365
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 95 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2366
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 95], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2367
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2368
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2369
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2370
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2371
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2372
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2373
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2374
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 96 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2375
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 96], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2376
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2377
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
2378
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2379
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2380
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2381
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2382
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2383
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2384
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 97], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2385
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2387
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2388
|
+
[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" = 100 [["params", {"listing_id"=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2389
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2390
|
+
[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
|
|
2391
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2392
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2393
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2394
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2395
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2396
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2397
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2398
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 98], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2399
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2400
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2401
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2402
|
+
[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" = 101 [["params", {"listing_id"=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2403
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2404
|
+
[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
|
|
2405
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2406
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2407
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2408
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2409
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2410
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2411
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2412
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 99], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2413
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2414
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2415
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2416
|
+
[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" = 102 [["params", {:listing_id=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2417
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2418
|
+
[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
|
|
2419
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2420
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2421
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2422
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2423
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2424
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2425
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2426
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 100], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2427
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2429
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2430
|
+
[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" = 103 [["params", {:listing_id=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2431
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2432
|
+
[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
|
|
2433
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2434
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2435
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2436
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2437
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2438
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2439
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2440
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2441
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2442
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2443
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
2444
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
2445
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2446
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2447
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2448
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2450
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2451
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 102], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2452
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2453
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2454
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2455
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2456
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 102 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 105)
|
|
2457
|
+
[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", 105]]
|
|
2458
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
|
|
2459
|
+
[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" = 102 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
2460
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2461
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 102]]
|
|
2462
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2463
|
+
[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" = 105[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2464
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2465
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2466
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2467
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2468
|
+
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
2469
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 102]]
|
|
2470
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2471
|
+
[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" = 105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
2472
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
|
|
2473
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
|
2474
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2475
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2476
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2477
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2478
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2479
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2480
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2481
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2482
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2483
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2484
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2485
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2486
|
+
[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" = 103 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 106)
|
|
2487
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2488
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2489
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2490
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2491
|
+
[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" = 103 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 107)[0m
|
|
2492
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2493
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2494
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2495
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2496
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2497
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2498
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2499
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2500
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2502
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2503
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2504
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2505
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 109]]
|
|
2506
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
|
|
2507
|
+
[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" = 104 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
2508
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2509
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 104]]
|
|
2510
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2511
|
+
[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" = 108[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2512
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2513
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2514
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
|
|
2515
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2516
|
+
[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" = 109 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2517
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2518
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2519
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2520
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2521
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2522
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2523
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2524
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2525
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 104 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
|
|
2526
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2527
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'tF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw' LIMIT 1[0m
|
|
2528
|
+
[1m[35mSQL (1.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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 104], ["target_type", "User"], ["token", "tF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2529
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2530
|
+
|
|
2531
|
+
Sent mail to user@example.com (10.6ms)
|
|
2532
|
+
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
|
2533
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
2534
|
+
To: user@example.com
|
|
2535
|
+
Message-ID: <53606c773dd2d_19f43fc971829bf8345bf@wp.local.mail>
|
|
2536
|
+
Subject: Rails402: You have new Newpostnotification notifications.
|
|
2537
|
+
Mime-Version: 1.0
|
|
2538
|
+
Content-Type: text/html;
|
|
2539
|
+
charset=UTF-8
|
|
2540
|
+
Content-Transfer-Encoding: quoted-printable
|
|
2541
|
+
|
|
2542
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
2543
|
+
tml4/strict.dtd">
|
|
2544
|
+
<html>
|
|
2545
|
+
<head>
|
|
2546
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
2547
|
+
"/>
|
|
2548
|
+
<title></title>
|
|
2549
|
+
</head>
|
|
2550
|
+
|
|
2551
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
2552
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
2553
|
+
ing: optimizeLegibility;">
|
|
2554
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
2555
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
2556
|
+
Logo
|
|
2557
|
+
</div>
|
|
2558
|
+
</div>
|
|
2559
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
2560
|
+
">
|
|
2561
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
2562
|
+
=
|
|
2563
|
+
|
|
2564
|
+
<div>
|
|
2565
|
+
New Post Notification happened. =
|
|
2566
|
+
|
|
2567
|
+
</div>
|
|
2568
|
+
<div>
|
|
2569
|
+
New Post Notification happened. =
|
|
2570
|
+
|
|
2571
|
+
</div>
|
|
2572
|
+
|
|
2573
|
+
</div>
|
|
2574
|
+
</div>
|
|
2575
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
2576
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
2577
|
+
<p style=3D"text-align: center;">
|
|
2578
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
|
2579
|
+
_unsubscribe?token=3DtF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw&typ=
|
|
2580
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
|
2581
|
+
</p>
|
|
2582
|
+
<p style=3D"text-align: center;">
|
|
2583
|
+
This is the default generated layout. A privacy declaration could g=
|
|
2584
|
+
o here.
|
|
2585
|
+
</p>
|
|
2586
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
2587
|
+
=C2=A9 MyCompany Pty Ltd
|
|
2588
|
+
</p>
|
|
2589
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
2590
|
+
ABN 123 456 789
|
|
2591
|
+
</p>
|
|
2592
|
+
</div>
|
|
2593
|
+
</div>
|
|
2594
|
+
</body>
|
|
2595
|
+
</html>=
|
|
2596
|
+
|
|
2597
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2598
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2599
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2600
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2601
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2602
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2603
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2604
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 105], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2605
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2606
|
+
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 110]]
|
|
2607
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]]
|
|
2608
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 105 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
2609
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2610
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 105]]
|
|
2611
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2612
|
+
[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" = 110[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2613
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2614
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2615
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2616
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2617
|
+
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 110 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
2618
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 105]]
|
|
2619
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2620
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 105 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
|
|
2621
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2622
|
+
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww' LIMIT 1[0m
|
|
2623
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 105], ["target_type", "User"], ["token", "7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2624
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2625
|
+
|
|
2626
|
+
Sent mail to user@example.com (5.6ms)
|
|
2627
|
+
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
|
2628
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
2629
|
+
To: user@example.com
|
|
2630
|
+
Message-ID: <53606c7749f7f_19f43fc971829bf834688@wp.local.mail>
|
|
2631
|
+
Subject: Rails402: You have a new Newpostnotification notification.
|
|
2632
|
+
Mime-Version: 1.0
|
|
2633
|
+
Content-Type: text/html;
|
|
2634
|
+
charset=UTF-8
|
|
2635
|
+
Content-Transfer-Encoding: quoted-printable
|
|
2636
|
+
|
|
2637
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
2638
|
+
tml4/strict.dtd">
|
|
2639
|
+
<html>
|
|
2640
|
+
<head>
|
|
2641
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
2642
|
+
"/>
|
|
2643
|
+
<title></title>
|
|
2644
|
+
</head>
|
|
2645
|
+
|
|
2646
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
2647
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
2648
|
+
ing: optimizeLegibility;">
|
|
2649
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
2650
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
2651
|
+
Logo
|
|
2652
|
+
</div>
|
|
2653
|
+
</div>
|
|
2654
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
2655
|
+
">
|
|
2656
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
2657
|
+
New Post Notification happened.
|
|
2658
|
+
|
|
2659
|
+
</div>
|
|
2660
|
+
</div>
|
|
2661
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
2662
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
2663
|
+
<p style=3D"text-align: center;">
|
|
2664
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
|
2665
|
+
_unsubscribe?token=3D7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww&typ=
|
|
2666
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
|
2667
|
+
</p>
|
|
2668
|
+
<p style=3D"text-align: center;">
|
|
2669
|
+
This is the default generated layout. A privacy declaration could g=
|
|
2670
|
+
o here.
|
|
2671
|
+
</p>
|
|
2672
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
2673
|
+
=C2=A9 MyCompany Pty Ltd
|
|
2674
|
+
</p>
|
|
2675
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
2676
|
+
ABN 123 456 789
|
|
2677
|
+
</p>
|
|
2678
|
+
</div>
|
|
2679
|
+
</div>
|
|
2680
|
+
</body>
|
|
2681
|
+
</html>=
|
|
2682
|
+
|
|
2683
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
|
2684
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
2685
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2687
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2688
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2689
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2690
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 106) LIMIT 1[0m
|
|
2691
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 106], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2692
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2693
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2694
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2695
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
2696
|
+
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
2697
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2698
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2699
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2700
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2701
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2702
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2703
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2704
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2705
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2706
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 111 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
2707
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 107]]
|
|
2708
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
|
2709
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2710
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2711
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2712
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2713
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2715
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2716
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2717
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2718
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2719
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2720
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2721
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2722
|
+
[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", 113]]
|
|
2723
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
|
|
2724
|
+
[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" = 108 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
2725
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2726
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 108]]
|
|
2727
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2728
|
+
[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" = 112[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2729
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2730
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2731
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
|
|
2732
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2733
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 113 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2734
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2735
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2736
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2737
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2738
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2739
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2740
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2741
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2742
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 108 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
|
|
2743
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2744
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA' LIMIT 1[0m
|
|
2745
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 108], ["target_type", "User"], ["token", "9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2747
|
+
|
|
2748
|
+
Sent mail to user@example.com (7.4ms)
|
|
2749
|
+
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
|
2750
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
2751
|
+
To: user@example.com
|
|
2752
|
+
Message-ID: <53606c776083f_19f43fc971829bf834748@wp.local.mail>
|
|
2753
|
+
Subject: Rails402: You have new Newpostnotification notifications.
|
|
2754
|
+
Mime-Version: 1.0
|
|
2755
|
+
Content-Type: text/html;
|
|
2756
|
+
charset=UTF-8
|
|
2757
|
+
Content-Transfer-Encoding: quoted-printable
|
|
2758
|
+
|
|
2759
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
2760
|
+
tml4/strict.dtd">
|
|
2761
|
+
<html>
|
|
2762
|
+
<head>
|
|
2763
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
2764
|
+
"/>
|
|
2765
|
+
<title></title>
|
|
2766
|
+
</head>
|
|
2767
|
+
|
|
2768
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
2769
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
2770
|
+
ing: optimizeLegibility;">
|
|
2771
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
2772
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
2773
|
+
Logo
|
|
2774
|
+
</div>
|
|
2775
|
+
</div>
|
|
2776
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
2777
|
+
">
|
|
2778
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
2779
|
+
=
|
|
2780
|
+
|
|
2781
|
+
<div>
|
|
2782
|
+
New Post Notification happened. =
|
|
2783
|
+
|
|
2784
|
+
</div>
|
|
2785
|
+
<div>
|
|
2786
|
+
New Post Notification happened. =
|
|
2787
|
+
|
|
2788
|
+
</div>
|
|
2789
|
+
|
|
2790
|
+
</div>
|
|
2791
|
+
</div>
|
|
2792
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
2793
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
2794
|
+
<p style=3D"text-align: center;">
|
|
2795
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
|
2796
|
+
_unsubscribe?token=3D9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA&typ=
|
|
2797
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
|
2798
|
+
</p>
|
|
2799
|
+
<p style=3D"text-align: center;">
|
|
2800
|
+
This is the default generated layout. A privacy declaration could g=
|
|
2801
|
+
o here.
|
|
2802
|
+
</p>
|
|
2803
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
2804
|
+
=C2=A9 MyCompany Pty Ltd
|
|
2805
|
+
</p>
|
|
2806
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
2807
|
+
ABN 123 456 789
|
|
2808
|
+
</p>
|
|
2809
|
+
</div>
|
|
2810
|
+
</div>
|
|
2811
|
+
</body>
|
|
2812
|
+
</html>=
|
|
2813
|
+
|
|
2814
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2815
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
2816
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2817
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2818
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2819
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2820
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2821
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2822
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2823
|
+
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 114]]
|
|
2824
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]]
|
|
2825
|
+
[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" = 109 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
2826
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2827
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 109]]
|
|
2828
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2829
|
+
[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" = 114[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2830
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2831
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2832
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2833
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2834
|
+
[1m[35mNotifyUser::BaseNotification Load (0.7ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 114 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
2835
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 109]]
|
|
2836
|
+
[1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2837
|
+
[1m[36mNotifyUser::UserHash Load (0.9ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 109 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
|
|
2838
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2839
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'cfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA' LIMIT 1[0m
|
|
2840
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 109], ["target_type", "User"], ["token", "cfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2841
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2842
|
+
|
|
2843
|
+
Sent mail to user@example.com (11.0ms)
|
|
2844
|
+
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
|
2845
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
2846
|
+
To: user@example.com
|
|
2847
|
+
Message-ID: <53606c776d63c_19f43fc971829bf834837@wp.local.mail>
|
|
2848
|
+
Subject: Rails402: You have a new Newpostnotification notification.
|
|
2849
|
+
Mime-Version: 1.0
|
|
2850
|
+
Content-Type: text/html;
|
|
2851
|
+
charset=UTF-8
|
|
2852
|
+
Content-Transfer-Encoding: quoted-printable
|
|
2853
|
+
|
|
2854
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
2855
|
+
tml4/strict.dtd">
|
|
2856
|
+
<html>
|
|
2857
|
+
<head>
|
|
2858
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
2859
|
+
"/>
|
|
2860
|
+
<title></title>
|
|
2861
|
+
</head>
|
|
2862
|
+
|
|
2863
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
2864
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
2865
|
+
ing: optimizeLegibility;">
|
|
2866
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
2867
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
2868
|
+
Logo
|
|
2869
|
+
</div>
|
|
2870
|
+
</div>
|
|
2871
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
2872
|
+
">
|
|
2873
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
2874
|
+
New Post Notification happened.
|
|
2875
|
+
|
|
2876
|
+
</div>
|
|
2877
|
+
</div>
|
|
2878
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
2879
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
2880
|
+
<p style=3D"text-align: center;">
|
|
2881
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
|
2882
|
+
_unsubscribe?token=3DcfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA&typ=
|
|
2883
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
|
2884
|
+
</p>
|
|
2885
|
+
<p style=3D"text-align: center;">
|
|
2886
|
+
This is the default generated layout. A privacy declaration could g=
|
|
2887
|
+
o here.
|
|
2888
|
+
</p>
|
|
2889
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
2890
|
+
=C2=A9 MyCompany Pty Ltd
|
|
2891
|
+
</p>
|
|
2892
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
2893
|
+
ABN 123 456 789
|
|
2894
|
+
</p>
|
|
2895
|
+
</div>
|
|
2896
|
+
</div>
|
|
2897
|
+
</body>
|
|
2898
|
+
</html>=
|
|
2899
|
+
|
|
2900
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2901
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
2902
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
|
2903
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2904
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2905
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2906
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2907
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 110], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2908
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2909
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2910
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2911
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2912
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2913
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2914
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2915
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 115[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2916
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2917
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2918
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2919
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2920
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 115 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
2921
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 110]]
|
|
2922
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2923
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
|
2924
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2925
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2926
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2927
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2928
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2929
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2930
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.7ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 111) LIMIT 1
|
|
2931
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 111], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2932
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2933
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2934
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2935
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
2936
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2937
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2938
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
2939
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
2940
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
|
2941
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
|
2942
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2943
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2944
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2945
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2946
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 112) LIMIT 1
|
|
2947
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 112], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2948
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2949
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2950
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2951
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 112], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2952
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2953
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2954
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2955
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2956
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2957
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2958
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2959
|
+
[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" = 116[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2960
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2961
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2962
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2963
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2964
|
+
[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" = 116 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
2965
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 112]]
|
|
2966
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
|
2967
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
|
2968
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2969
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2970
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2971
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2972
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2973
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2974
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 113 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2975
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 113], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2976
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2977
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 113 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
|
|
2978
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
2979
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Id40Rb4eFTnEEYhW5zJk1gekE8yVkMCSmSjNOkxZmwBg' LIMIT 1[0m
|
|
2980
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 113], ["target_type", "User"], ["token", "Id40Rb4eFTnEEYhW5zJk1gekE8yVkMCSmSjNOkxZmwBg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2981
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2982
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
2983
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
2984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2985
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2986
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2987
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
2988
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 114 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
2989
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 114], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2990
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
2991
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 114 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
|
|
2992
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
2993
|
+
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GYn7nwiTgTcv2x8b2vcvXg8-hb3g1XQNW9qxGWvftXhg' LIMIT 1[0m
|
|
2994
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 114], ["target_type", "User"], ["token", "GYn7nwiTgTcv2x8b2vcvXg8-hb3g1XQNW9qxGWvftXhg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
2995
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
2996
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 114 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
|
|
2997
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
2998
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
2999
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3000
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3001
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3002
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3003
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
3004
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 115], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3006
|
+
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 115 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
|
|
3007
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3008
|
+
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dFeL-5OEHsR4HkIpTK8vvgnfI7flpZxw4eQkeS1sBWQA' LIMIT 1
|
|
3009
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 115], ["target_type", "User"], ["token", "dFeL-5OEHsR4HkIpTK8vvgnfI7flpZxw4eQkeS1sBWQA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3010
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3011
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3012
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 34 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3013
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3014
|
+
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 115 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
|
|
3015
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3016
|
+
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4nUdFh8BgQn6czQT_LWKkAapGPYD4nhRzE3nuiNgNXsg' LIMIT 1
|
|
3017
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 115], ["target_type", "User"], ["token", "4nUdFh8BgQn6czQT_LWKkAapGPYD4nhRzE3nuiNgNXsg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3018
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3019
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
3020
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3021
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3022
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3023
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3024
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3025
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 116) LIMIT 1[0m
|
|
3026
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 116], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3027
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3028
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
3029
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 116) LIMIT 1[0m
|
|
3030
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3031
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3032
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 116 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
3033
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
3034
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
3035
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
3036
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3037
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3038
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3039
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3040
|
+
[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" = 117) LIMIT 1
|
|
3041
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3042
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3044
|
+
[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" != 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 117) LIMIT 1
|
|
3045
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3046
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3047
|
+
[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" = 117) LIMIT 1[0m
|
|
3048
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
3049
|
+
[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
|
|
3050
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
3051
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3052
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3053
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3054
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3055
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3056
|
+
[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" = 118) LIMIT 1
|
|
3057
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3058
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3059
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3060
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 118) LIMIT 1
|
|
3061
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3063
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 118) LIMIT 1[0m
|
|
3064
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
3065
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
3066
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
3067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3068
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 30]]
|
|
3069
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3070
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
|
3071
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
|
3072
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3073
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3074
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3075
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3076
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3077
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
|
3078
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3079
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3080
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
3081
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3082
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3083
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3084
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3086
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ' LIMIT 1
|
|
3087
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 120], ["target_type", "User"], ["token", "Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3088
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3089
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3090
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3091
|
+
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
|
3092
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
3093
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3094
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3095
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3096
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3097
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3098
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg' LIMIT 1
|
|
3099
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 121], ["target_type", "User"], ["token", "a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3100
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3101
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3102
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3103
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3104
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 37 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3105
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3106
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
|
3107
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
3108
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3109
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3110
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3111
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3112
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3113
|
+
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pTzTUQKAvZuaplh2sZpY2gOCQ5YyZKUz3ENcRNrfRE8g' LIMIT 1[0m
|
|
3114
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 122], ["target_type", "User"], ["token", "pTzTUQKAvZuaplh2sZpY2gOCQ5YyZKUz3ENcRNrfRE8g"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3115
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3116
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3117
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3119
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 38[0m [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3120
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
3121
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
3122
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
3123
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
3124
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3125
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3126
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3127
|
+
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UdKF3m1VAU3uz9rnSXed0wauEA7C1ZBWrEpPfQkfo8fg' LIMIT 1[0m
|
|
3128
|
+
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 123], ["target_type", "User"], ["token", "UdKF3m1VAU3uz9rnSXed0wauEA7C1ZBWrEpPfQkfo8fg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
|
3129
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3130
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
3131
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
3132
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
3133
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3134
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
3135
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3136
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
3137
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3138
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
3139
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3140
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
3141
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3142
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
3143
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3144
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
3145
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
3146
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|