[1m[36m (7.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m Migrating to CreateUsers (20140105070446) [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m [1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140105070446"]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m Migrating to CreateNotifyUserNotifications (20140105070448) [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mCREATE TABLE "notify_user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "target_id" integer, "target_type" varchar(255), "params" text, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140105070448"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (8.4ms)[0m [1mCREATE TABLE "notify_user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "target_id" integer, "target_type" varchar(255), "params" text, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140105070448') [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140105070446')[0m [1m[36m (0.5ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#index as HTML [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.5ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#index as HTML [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0 Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m [1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.5ms) [1m[36mNewPostNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2) [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Sent mail to user@example.com (7.0ms) Date: Sun, 05 Jan 2014 18:04:53 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c90415e9f5c_68dd8082dbf8634e1@tomass-air-11.mail> Subject: Rails402: You have new Newpostnotification notifications. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit layout-name: action_mailer layout-path: notify_user/layouts <div> New Post Notification happened. </div> <div> New Post Notification happened. </div> [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Sent mail to user@example.com (6.2ms) Date: Sun, 05 Jan 2014 18:04:53 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c90415f1b80_68dd8082dbf8635d@tomass-air-11.mail> Subject: Rails402: You have a new Newpostnotification notification. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit layout-name: action_mailer layout-path: notify_user/layouts New Post Notification happened. [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36m (0.4ms)[0m [1mbegin transaction[0m Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.3ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.9ms) Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.7ms) Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.3ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.7ms) Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.8ms) Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.6ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb within notify_user/layouts/action_mailer (1.8ms) Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms) Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb within notify_user/layouts/action_mailer (0.5ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (5.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#index as HTML [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.7ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#index as HTML [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0 Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms) [1m[36mNewPostNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Sent mail to user@example.com (8.4ms) Date: Sun, 05 Jan 2014 18:16:13 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c906bd9e1d1_69db8082dbf848758@tomass-air-11.mail> Subject: Rails402: You have new Newpostnotification notifications. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> <div> New Post Notification happened. = </div> <div> New Post Notification happened. = </div> </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Sent mail to user@example.com (5.7ms) Date: Sun, 05 Jan 2014 18:16:13 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c906bda4d58_69db8082dbf8488fe@tomass-air-11.mail> Subject: Rails402: You have a new Newpostnotification notification. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> New Post Notification happened. </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#index as HTML [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#index as HTML [1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0 Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.4ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms) [1m[36mNewPostNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Sent mail to user@example.com (8.5ms) Date: Sun, 05 Jan 2014 21:46:46 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c93816e5cb5_743980c1fbe4185b4@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have new Newpostnotification notifications. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> <div> New Post Notification happened. = </div> <div> New Post Notification happened. = </div> </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Sent mail to user@example.com (7.7ms) Date: Sun, 05 Jan 2014 21:46:46 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c93816ed465_743980c1fbe4186c6@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have a new Newpostnotification notification. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> New Post Notification happened. </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36m (1.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#index as HTML [1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.6ms) [1m[35m (6.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#index as HTML [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0 Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.2ms) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms) [1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (6.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Sent mail to user@example.com (10.8ms) Date: Sun, 05 Jan 2014 21:50:55 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c9390f9c98d_74b380c2bbec64367@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have new Newpostnotification notifications. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> <div> New Post Notification happened. = </div> <div> New Post Notification happened. = </div> </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Sent mail to user@example.com (8.4ms) Date: Sun, 05 Jan 2014 21:50:55 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c9390fa861b_74b380c2bbec6444b@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have a new Newpostnotification notification. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> New Post Notification happened. </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[36m (0.4ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (3.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#index as HTML [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) [1m[35m (6.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#index as HTML [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0 Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms) [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms) [1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) [1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1) [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2) [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Sent mail to user@example.com (11.6ms) Date: Sun, 05 Jan 2014 22:08:05 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c93d15c2d49_76438082dbf89262c@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have new Newpostnotification notifications. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> <div> New Post Notification happened. = </div> <div> New Post Notification happened. = </div> </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Sent mail to user@example.com (10.7ms) Date: Sun, 05 Jan 2014 22:08:05 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c93d15ce74f_76438082dbf892715@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have a new Newpostnotification notification. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> New Post Notification happened. </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (5.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#index as HTML [1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 1.0ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#index as HTML [1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0 Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms) [1m[36mNewPostNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by NotifyUser::NotificationsController#mark_read as HTML Parameters: {"ids"=>["1"]} [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1')) [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1) [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2) [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Sent mail to user@example.com (9.4ms) Date: Mon, 06 Jan 2014 10:30:53 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c9eb2d5b986_7d8880c1bbe873f6@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have new Newpostnotification notifications. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> <div> New Post Notification happened. = </div> <div> New Post Notification happened. = </div> </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Sent mail to user@example.com (6.5ms) Date: Mon, 06 Jan 2014 10:30:53 +1100 From: please-change-me-at-config-initializers-notify-user@example.com To: user@example.com Message-ID: <52c9eb2d62c1f_7d8880c1bbe874a9@Tomass-MacBook-Air-11.local.mail> Subject: Rails402: You have a new Newpostnotification notification. Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h= tml4/strict.dtd"> <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type= "/> <title></title> </head> <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"= 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render= ing: optimizeLegibility;"> <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;"> Logo </div> </div> <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;= "> <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; "> New Post Notification happened. </div> </div> <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;"> <div style=3D"width: 600px; margin: 0 auto; padding: 0;"> <p style=3D"text-align: center;"> This is the default generated layout. A privacy declaration could g= o here. </p> <p style=3D"text-align: center; margin-bottom: 0px;"> =C2=A9 MyCompany Pty Ltd </p> <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;"> ABN 123 456 789 </p> </div> </div> </body> </html>= [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m